import request from '@/utils/back-request';

//首页搜索下拉框
export function matchMajorAndPositionList(data) {
  return request({
    url: '/api-career/zt/login/subject/search/list',
    method: 'post',
    data,
  });
}
//获取热门院校
export function getPositionSalaryConfig(data) {
  return request({
    url: '/api-career/positionSalary/config',
    method: 'post',
    data,
  });
}
//获取高校详情
export function getCollegeDetails(data) {
  return request({
    url: '/api-career/college/details',
    method: 'post',
    data,
  });
}
// 热门专业
export function getHotMajor(data) {
  return request({
    url: '/api-career/positionSalary/arrayConfig',
    method: 'post',
    data,
  });
}
// 根据一级查二级
export function getCampusTagTree(data) {
  return request({
    url: '/api-career/campus/tagTree',
    method: 'post',
    data,
  });
}
//获取高校专业列表
export function getCollegeTags(data) {
  return request({
    url: '/api-career/college/tags',
    method: 'post',
    data,
  });
}
//获取高校专业列表-树结构
export function getCollegeTagsTree(data) {
  return request({
    url: '/api-career/college/tags/tree',
    method: 'post',
    data,
  });
}
//获取校区列表
export function getCollegeCampusList(data) {
  return request({
    url: '/api-career/college/campusList',
    method: 'post',
    data,
  });
}
//获取校园列表
export function getCollegeList(data) {
  return request({
    url: '/api-career/college/get/college/list',
    method: 'post',
    data,
  });
}
//  搜索专业列表
export function getSearchMajorList(data) {
  return request({
    url: '/api-career/campus/tagSearch',
    method: 'post',
    data,
  });
}

// 专业信息
export function getMajorInfo(data) {
  return request({
    url: '/api-career/position/rel/tag/info',
    method: 'post',
    data,
  });
}
// 专业信息
export function searchJobByProfession(data) {
  return request({
    url: '/api-career/position/subject/match/by/profession',
    method: 'post',
    data,
  });
}
// 职业薪酬
export function getPositionSalary(data) {
  return request({
    url: '/api-career/position/rel/tag/salary',
    method: 'post',
    data,
  });
}
// 热点城市
export function getHotCitys(data) {
  return request({
    url: '/api-career/position/rel/hotCitys',
    method: 'post',
    data,
  });
}
// 热点城市
export function getSchoolList(data) {
  return request({
    url: '/api-career/college/get/college/to/pc/list',
    method: 'post',
    data,
  });
}
// 专业门类信息
export function getMajorTagInfo(data) {
  return request({
    url: '/api-career/position/rel/tag/info',
    method: 'post',
    data,
  });
}
// 新增/取消收藏
export function campusCollect(data) {
  return request({
    url: '/api-career/campus/collect',
    method: 'post',
    data,
  });
}
// 收藏院校列表
export function campusCollectColleges(data) {
  return request({
    url: '/api-career/campus/collect/colleges',
    method: 'post',
    data,
  });
}
// 查询是否收藏
export function campusIsCollect(data) {
  return request({
    url: '/api-career/campus/is/collect',
    method: 'post',
    data,
  });
}
// 获取用户信息
export function getZtjUserInfo(data) {
  return request({
    url: '/api-career/ztj/get/user/by/token', //http://192.168.60.113:5173/apiLocal/api-career/ztj/get/user/by/token
    method: 'post',
    data,
  });
}
// 获取院校历年分数、招生计划筛选项
export function getCollegeFilter(data) {
  return request({
    url: '/api-career/college/province/filter/dict',
    method: 'post',
    data,
  });
}
// 获取历年分数专业列表（可联调）
export function getCollegeHistoryScoreList(data) {
  return request({
    url: '/api-career/college/pro/history-score/list',
    method: 'post',
    data,
  });
}
// 获取校园专业组(可联调)
export function getCollegeMajorGroupList(data) {
  return request({
    url: '/api-career/college/group/list',
    method: 'post',
    data,
  });
}
// 获取校园招生计划专业列表（可联调）
export function getCollegePlanNumList(data) {
  return request({
    url: '/api-career/college/pro/list',
    method: 'post',
    data,
  });
}
